insertModifier

abstract fun insertModifier(block: DesignBlock, modifierBlock: DesignBlock, index: Int)

Inserts a modifier at the given index into the modifiers of a shape. The same modifier can appear multiple times in the list. Required scope: "shape/change" on every block that uses the shape. Experimental: this API may change in a minor release.

Parameters

block

the shape to update.

modifierBlock

the modifier to insert.

index

the index at which the modifier shall be inserted.